package com.scm.service;

import com.scm.common.core.domain.entity.SysUser;
import com.scm.common.core.page.PageDomain;
import com.scm.persist.model.ScmSupplyQuotation;

import java.util.List;

/**
 * 询价单Service接口
 *
 * @author reptilemanager
 * @date 2024-05-17
 */
public interface IScmSupplyQuotationService
{
    /**
     * 查询询价单
     *
     * @param id 询价单主键
     * @return 询价单
     */
    public ScmSupplyQuotation selectScmSupplyQuotationById(Long id);

    /**
     * 查询询价单列表
     *
     * @param scmSupplyQuotation 询价单
     * @return 询价单集合
     */
    public List<ScmSupplyQuotation> selectScmSupplyQuotationList(ScmSupplyQuotation scmSupplyQuotation, SysUser sysUser);

    public List<ScmSupplyQuotation> selectScmSupplyQuotationList(Long tenantId, ScmSupplyQuotation scmSupplyQuotation, PageDomain pageDomain );

    /**
     * 新增询价单
     *
     * @param scmSupplyQuotation 询价单
     * @return 结果
     */
    public int insertScmSupplyQuotation(ScmSupplyQuotation scmSupplyQuotation);

    /**
     * 修改询价单
     *
     * @param scmSupplyQuotation 询价单
     * @return 结果
     */
    public int updateScmSupplyQuotation(ScmSupplyQuotation scmSupplyQuotation);

    /**
     * 批量删除询价单
     *
     * @param ids 需要删除的询价单主键集合
     * @return 结果
     */
    public int deleteScmSupplyQuotationByIds(List<Long> ids);

    /**
     * 删除询价单信息
     *
     * @param id 询价单主键
     * @return 结果
     */
    public int deleteScmSupplyQuotationById(Long id);
}
